package br.com.concurso.persistencia;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {
	
	//private static final SessionFactory session = criarNovaSession();  
	private static final SessionFactory sessionFactory = null;
				
	private static SessionFactory criarNovaSession() throws Exception{
		try {
			//sessionFactory = new Configuration().configure().buildSessionFactory();
			return sessionFactory;
		} catch (Exception e) {
			throw new Exception(e);
		}
		
	}

	

}

